
* {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

.buy-page {
    width: 100%;
    min-width: 1200px;
}

header {
    width: 100%;
    background-color: #fff;
}

.nav {
    width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
}

.nav>.logo>img {
    width: 121px;
    height: 75px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.nav-list {
    display: flex;
    margin-left: 160px;
    padding: 24px 0;
    color: #27ae60;
    font-size: 16px;
}

.nav-list>li {
    position: relative;
    margin-right: 48px;
    cursor: pointer;
}

.nav-list>li::after {
    content: '';
    position: absolute;
    top: 6px;
    right: -24px;
    width: 1px;
    height: 16px;
    background-color: #2ecc71;
}

.nav-list>li:last-child::after {
    display: none;
}

.login{
    margin-left: auto;
    color: #2ecc71;
    cursor: pointer;
    text-decoration: underline;
}


/* 主体内容 */
.main {
    padding-bottom: 40px;
    width: 100%;
    background: #f6f7f8;
}

.main>.content {
    display: flex;
    gap: 20px;
    margin: auto;
    width: 1200px;
}

/* 左侧商品图片信息 */
.content-left {
    flex: 1;
    padding-top: 20px;
}

.content-left>.title {
    font-size: 20px;
    color: #000;
}

.content-left>.view {
    font-size: 14px;
    line-height: 36px;
    color: #808080;
}

.content-left>.product {
    display: flex;
    gap: 40px;
}

.product>.product-img {
    width: 300px;
}

.current-img{
    width: 100%;
}

.scroll-list{
    position: relative;
}

.left-arrow,
.right-arrow{
    position: absolute;
    top: 0;
    left: 0;
    width: 5%;
    height: 100%;
    line-height: 100%;
    color: #2ecc71;
    border: 1px solid #2ecc71;
    background-color: #f3f3f3;
    cursor: pointer;
    border-radius: 2px;
}

.right-arrow{
    left: unset;
    right: 0;
}

.left-arrow > div,
.right-arrow > div{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.scroll-list > .list{
    margin: auto;
    width: 80%;
    overflow: hidden;
}

.img-scroll{
    display: flex;
    width: 100%;
    transition: all .5s;
}

.scroll-list img{
    margin-right: 5%;
    width: 30%;
    cursor: pointer;
}

.product>.product-info {
    flex: 1;
}

.price {
    margin-bottom: 15px;
}
.current-price {
    font-size: 24px;
    color: #27ae60;
    margin-right: 10px;
}
.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.region {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.tag {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    background-color: #27ae60;
}

.buttons {
    display: flex;
    gap: 40px;
}
.btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}
.contact {
    border: 1px solid #2ecc71;
    color: #2ecc71;
}
.buy {
    background: #2ecc71;
    color: #fff;
    border: 1px solid #2ecc71;
}

.likes {
    margin-top: 20px;
    padding: 6px 0;
    width: 80px;
    text-align: center;
    color: #2ecc71;
    font-size: 14px;
    border: 1px solid #2ecc71;
    border-radius: 4px;
    cursor: pointer;
}

.flow > img{
    margin-top: 40px;
    width: 100%;
}

/* 右侧列表 */
.content-right {
    width: 300px;
    border-left: 1px solid#2ecc71;
}

/* 主容器 */
.product-up {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 标题样式 */
.product-up > .title {
    padding: 0 10px;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    border-left: 3px solid #ff483c;
}

/* 产品列表 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 单个产品项 */
.product-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    transition: transform 0.2s;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-2px);
}

/* 产品图片 */
.product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* 产品信息 */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #2ecc71;
    margin-top: auto;
}

/* 底部 */
footer {
    width: 100%;
    border-top: 8px solid #ff483c;
}

.footer-container {
    width: 1200px;
    min-height: 150px;
    margin: auto;
    display: flex;
    align-items: center;
}

.footer-container>.logo>img {
    width: 136px;
    height: 75px;
}

.footer-container>.des {
    margin-left: 100px;
    font-size: 26px;
    color: #111111;
}

.footer-container>.right {
    margin-left: auto;
}

.footer-container>.right>img {
    width: 360px;
}
